package com.ty.xiaoyu.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

@Data
public class Reply {
    String replyId;
    String topicId;
    String userId;
    String replyText;
//    String replyImage;
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss'Z'")
    LocalDateTime replyTime;
    Integer replyState;

    // 用户
    User user;
    // 评论列表
    List<Comment> commentList;
}
